<template>
  <div>
    <button @click="path='/login'">去登录</button>
    <button @click="path='/main'">去主菜单</button>
    <hr>
    <cc-login v-if="path=='/login'"></cc-login>
    <cc-main v-else-if="path=='/main'"></cc-main>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import CcLogin from './view/CcLogin.vue';
import CcMain from './view/CcMain.vue';

const path = ref('/login')
</script>

<style scoped>

</style>